/**
 * Copyright 厦门中软海晟信息技术有限公司 版权所有 违者必究 2019
 */
package com.opencvjava.piano.support;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : sunzb
 * @date: 2019/11/28
 */
public class Unit {
    public static final int R = 6;
    public static final int RR = R * R;
    private int rowStart;
    private int colStart;
    private List<Integer> data = new ArrayList<>();
    private int avg;
    private int var;
    private ImageInfo imageInfo;
    private int index;
    private boolean fill = false;
    private boolean used = false;

    public boolean isUsed() {
        return used;
    }

    public Unit setUsed(boolean used) {
        this.used = used;
        return this;
    }

    public boolean isFill() {
        return fill;
    }

    public Unit setFill(boolean fill) {
        this.fill = fill;
        return this;
    }

    public ImageInfo getImageInfo() {
        return imageInfo;
    }

    public Unit setImageInfo(ImageInfo imageInfo) {
        this.imageInfo = imageInfo;
        return this;
    }

    public int getIndex() {
        return index;
    }

    public Unit setIndex(int index) {
        this.index = index;
        return this;
    }

    public int getVar() {
        return var;
    }

    public Unit setVar(int var) {
        this.var = var;
        return this;
    }

    public List<Integer> getData() {
        return data;
    }

    public Unit setData(List<Integer> data) {
        this.data = data;
        return this;
    }

    public int getAvg() {
        return avg;
    }

    public Unit setAvg(int avg) {
        this.avg = avg;
        return this;
    }

    public int getRowStart() {
        return rowStart;
    }

    public Unit setRowStart(int rowStart) {
        this.rowStart = rowStart;
        return this;
    }

    public int getColStart() {
        return colStart;
    }

    public Unit setColStart(int colStart) {
        this.colStart = colStart;
        return this;
    }
}
